package ipad.asia.service.impl;

import ipad.asia.dao.ShopDao;
import ipad.asia.entity.Shop;
import ipad.asia.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {
    @Autowired
    private ShopDao shopDao;
    @Override
    public Shop findById(int id) {
        return shopDao.findById(id);
    }

    @Override
    public List<Shop> findByNameLike(String name) {
        return shopDao.findByNameLike(name);
    }


    @Override
    public Shop findByEnterpriseId(int id) {
        return shopDao.findByEnterpriseId(id);
    }
}
